package com.fubowen.reader.db.dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.fubowen.reader.db.bean.Task

@Dao
interface TaskDao {
    @Query("select * from Task")
    fun all(): List<Task>

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun setOrReplace(bean: List<Task>): List<Long>
}